<?php
// $mysqli = new mysqli(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
// if(mysqli_connect_errno())
// {
//     echo mysqli_connect_error();
// }
// $mysqli->set_charset('utf8');
// var_dump(DB_USERNAME);exit;
$con = mysql_connect(DB_HOSTNAME,DB_USERNAME,DB_PASSWORD);
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
$db_selected = mysql_select_db(DB_DATABASE, $con);

if (!$db_selected)
  {
  die ("Can\'t use test_db : " . mysql_error());
  }
// exit;